package com.scud.model.product.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    //主键id
    private Long id;
    //商品名
    private String name;
    //商家id
    private Long userId;
    //分类id
    private Integer categoryId;
    //标签
    private String label;
    //图片
    private String image;
    //显示价格
    private Double minPrice;
    //创建时间
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
    //上下架
    private Short status;
}
